#ifndef RADEK_H
#define RADEK_H

class Radek {
public:
    QString anglicky;
    QString cesky;
    QString poznamky;
    QString specPoznamky;
    QString autor;
    qint64 position;
    Radek() {}
    Radek(QString angl,QString cesk,QString pozn,QString specPozn,QString aut,qint64 pos): anglicky(angl), cesky(cesk), poznamky(pozn), specPoznamky(specPozn), autor(aut), position(pos) {}
    QString doHtml() {
        QString ret("<html><head><style type=\"text/css\">.cs {color: red} .en {color: blue} a{text-decoration:none}a:hover{text-decoration:underline}</style></head><body>");
        ret.append("<span class= \"en\">" + this->anglicky + "</span><br /><span class= \"cs\">" + this->cesky + "</span><br />" + this->poznamky + "<br />" + this->specPoznamky + "<br /><br />" + this->autor);
        //if (del) ret.append(QString("<br /> <a href=\"del:" + QString::number(this->position) +  "\"><strong>Smazat</strong></a>"));
        ret.append(QString::fromUtf8("</body></html>"));
        return ret;
    }
};

#endif // RADEK_H
